#ifndef __GPSD_H__
#define __GPSD_H__

typedef unsigned int UNIT;
typedef int BYTE;
typedef long int WORD;

typedef struct _gprmc_
{
	UNIT time;			//时间
	char pos_state;		//定位状态
	float latitude;		//纬度
	float longitude;	//经度
	float speed;		//移动速度
	float direction;	//方向
	UNIT date;			//日期
	float declination;	//磁偏角
	char dd;			//磁偏角方向
	char mode;
}GPRMC;

extern int gprmc_analysis(char *buff,GPRMC *gprmc);
extern int set_opt(int fd,int nBits, char nEvent,int nSpeed,int nStop);

#endif